|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmisc.SetTools
public class SetTools
Class which generates the Cartesian product of a list of sets. Can be optimized by using an iterative approach.
| Constructor Summary | |
|---|---|
SetTools()
|
|
| Method Summary | ||
|---|---|---|
static
|
cartesianProduct(java.util.Set<A>... sets)
Given a list of sets, this method returns the Cartesian product of the given sets. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SetTools()
| Method Detail |
|---|
public static <A> java.util.Set<java.util.Set<A>> cartesianProduct(java.util.Set<A>... sets)
A - class of object contained in set.sets - sets of objects which Cartesian product must be determined.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||